package com.jnxx.okr.mapper;

import com.jnxx.basic.mapper.BaseMapper;
import com.jnxx.okr.domain.Okrandstaff;
import com.jnxx.task.domain.OkrStaff;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author haha
 * @since 2023-09-20
 */
public interface OkrandstaffMapper extends BaseMapper<Okrandstaff> {

    List<Okrandstaff> findByStaffId(Long staffId);

    List<OkrStaff>  findStaffIdsByOkrId(Long okrId);

    void delByOkrId(Long okrId);

    List<Long> findByStaffIdAndCycleId(@Param("staffId") Long staffId,@Param("cycleId") Long cycleId);
}
